package com.clei.enums;

import com.clei.utils.helper.DBHelper;
import com.clei.utils.helper.MysqlDBHelper;
import com.clei.utils.helper.TaosDBHelper;

/**
 * 数据库服务
 *
 * @author Y
 * @date 2024-01-18
 **/
public enum DatabaseServerEnum {

    /**
     * MYSQL
     */
    MYSQL(new MysqlDBHelper()),

    /**
     * TAOS TDENGINE
     */
    TAOS(new TaosDBHelper());

    /**
     * dbHelper
     */
    private final DBHelper dbHelper;

    DatabaseServerEnum(DBHelper dbHelper) {
        this.dbHelper = dbHelper;
    }

    public DBHelper getDbHelper() {
        return dbHelper;
    }
}
